<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRotation extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('rotation', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name', 255)->comment("轮播图名称");
            $table->string('images', 500)->default('')->comment('图片');
            $table->string('synopsis', 500)->default('')->comment('简介');
            $table->integer('sort')->default(0)->comment("排序");
            $table->tinyInteger('status')->default(0)->comment("状态 0启用，1禁用");
            $table->string('remark', 500)->nullable()->default('')->comment("备注");
            $table->integer('created_at')->default(0)->comment("创建时间");
            $table->integer('updated_at')->default(0)->comment("修改时间");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::dropIfExists('rotation');
    }

}
